package com.xy.biz.mc.domain.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 
 * 
 * @author zsp
 * @date 2021-2-25
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class UserConnectionBO {

	/**
	 * 状态：断开
	 */
	public final static int STATUS_DISCONNECT = 0;
	/**
	 * 状态：连接
	 */
	public final static int STATUS_CONNECT = 1;
	
	/**
	 * 用户Id
	 */
	private Long userId;
	/**
	 * 用户分组Id
	 */
	private Long userGroupId;
	/**
	 * 服务Id
	 */
	private Long serverId;
	/**
	 * 连接时间
	 */
	private LocalDateTime connectTime;
	/**
	 * 断开时间
	 */
	private LocalDateTime disconnectTime;
	/**
	 * 状态：0-断开，1-连接
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	private LocalDateTime createTime;
	/**
	 * 更新时间
	 */
	private LocalDateTime updateTime;

}
